/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.publish.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 到货登记Entity
 * @author alex
 * @version 2017-05-04
 */
public class PublishArrivalHeader extends DataEntity<PublishArrivalHeader> {
	
	private static final long serialVersionUID = 1L;
	private String arrivalNum;		// 到货单号
	private String puAppointId;		// 预约单ID
	private String puAppointNo;		// 预约单号
	private String puBillId;		// 采购单ID
	private String puBillNo;		// 采购单号
	private String supplierId;		// 供应商
	private String supplierName;		// 供应商名称
	private String skuNum;		// SKU数
	private String boxNum;		// 到货箱数
	private String arrivalSum;		// 到货总数
	private String arrivalPlatform;		// 到货月台
	private Date arrivalDate;		// 到货时间
	private String arrivalNo;		// 到货记录号
	private String arrivalCar;		// 车牌号
	private String arrivalContact;		// 司机
	private String arrivalPhone;		// 司机电话
	private String status;		// 状态
	private String auditBy;		// 审核人ID
	private String auditName;		// 审核人
	private Date auditDate;		// 审核时间
	
	public PublishArrivalHeader() {
		super();
	}

	public PublishArrivalHeader(String id){
		super(id);
	}

	@Length(min=0, max=30, message="到货单号长度必须介于 0 和 30 之间")
	public String getArrivalNum() {
		return arrivalNum;
	}

	public void setArrivalNum(String arrivalNum) {
		this.arrivalNum = arrivalNum;
	}
	
	@Length(min=0, max=30, message="预约单ID长度必须介于 0 和 30 之间")
	public String getPuAppointId() {
		return puAppointId;
	}

	public void setPuAppointId(String puAppointId) {
		this.puAppointId = puAppointId;
	}
	
	@Length(min=0, max=30, message="预约单号长度必须介于 0 和 30 之间")
	public String getPuAppointNo() {
		return puAppointNo;
	}

	public void setPuAppointNo(String puAppointNo) {
		this.puAppointNo = puAppointNo;
	}
	
	@Length(min=0, max=30, message="采购单ID长度必须介于 0 和 30 之间")
	public String getPuBillId() {
		return puBillId;
	}

	public void setPuBillId(String puBillId) {
		this.puBillId = puBillId;
	}
	
	@Length(min=0, max=30, message="采购单号长度必须介于 0 和 30 之间")
	public String getPuBillNo() {
		return puBillNo;
	}

	public void setPuBillNo(String puBillNo) {
		this.puBillNo = puBillNo;
	}
	
	@Length(min=0, max=30, message="供应商长度必须介于 0 和 30 之间")
	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}
	
	@Length(min=0, max=50, message="供应商名称长度必须介于 0 和 50 之间")
	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	
	@Length(min=0, max=11, message="SKU数长度必须介于 0 和 11 之间")
	public String getSkuNum() {
		return skuNum;
	}

	public void setSkuNum(String skuNum) {
		this.skuNum = skuNum;
	}
	
	@Length(min=0, max=11, message="到货箱数长度必须介于 0 和 11 之间")
	public String getBoxNum() {
		return boxNum;
	}

	public void setBoxNum(String boxNum) {
		this.boxNum = boxNum;
	}
	
	@Length(min=0, max=11, message="到货总数长度必须介于 0 和 11 之间")
	public String getArrivalSum() {
		return arrivalSum;
	}

	public void setArrivalSum(String arrivalSum) {
		this.arrivalSum = arrivalSum;
	}
	
	@Length(min=0, max=30, message="到货月台长度必须介于 0 和 30 之间")
	public String getArrivalPlatform() {
		return arrivalPlatform;
	}

	public void setArrivalPlatform(String arrivalPlatform) {
		this.arrivalPlatform = arrivalPlatform;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getArrivalDate() {
		return arrivalDate;
	}

	public void setArrivalDate(Date arrivalDate) {
		this.arrivalDate = arrivalDate;
	}
	
	@Length(min=0, max=30, message="到货记录号长度必须介于 0 和 30 之间")
	public String getArrivalNo() {
		return arrivalNo;
	}

	public void setArrivalNo(String arrivalNo) {
		this.arrivalNo = arrivalNo;
	}
	
	@Length(min=0, max=30, message="车牌号长度必须介于 0 和 30 之间")
	public String getArrivalCar() {
		return arrivalCar;
	}

	public void setArrivalCar(String arrivalCar) {
		this.arrivalCar = arrivalCar;
	}
	
	@Length(min=0, max=30, message="司机长度必须介于 0 和 30 之间")
	public String getArrivalContact() {
		return arrivalContact;
	}

	public void setArrivalContact(String arrivalContact) {
		this.arrivalContact = arrivalContact;
	}
	
	@Length(min=0, max=30, message="司机电话长度必须介于 0 和 30 之间")
	public String getArrivalPhone() {
		return arrivalPhone;
	}

	public void setArrivalPhone(String arrivalPhone) {
		this.arrivalPhone = arrivalPhone;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=30, message="审核人ID长度必须介于 0 和 30 之间")
	public String getAuditBy() {
		return auditBy;
	}

	public void setAuditBy(String auditBy) {
		this.auditBy = auditBy;
	}
	
	@Length(min=0, max=30, message="审核人长度必须介于 0 和 30 之间")
	public String getAuditName() {
		return auditName;
	}

	public void setAuditName(String auditName) {
		this.auditName = auditName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAuditDate() {
		return auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}
	
}